package com.example.admin.service;

import com.example.xo.common.pojo.Category;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface CategoryService {

    public boolean add(Category category);

    boolean deleteById(String id);

    public boolean update(Category category);

    public List<Category> findAll();

    public Category findById(String id);

    public Category findByName(String name);


}
